package com.ruoyi.blog.controller.api;

import com.ruoyi.blog.service.IBlogConfigService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/blog/config")
public class ConfigController {

    @Autowired
    private IBlogConfigService iBlogConfigService;

    @GetMapping("/getConfigList")
    public AjaxResult getConfigList() {
        return AjaxResult.success(iBlogConfigService.getBlogApiConfig() );
    }
}